#include "SMPPMsAvailabilityStatus.hpp"

using namespace smpp::pdu;

MsAvailabilityStatus::MsAvailabilityStatus(const quint8 nValue):
TLV(TLVtags::TAG_MS_AVAILABILITY_STATUS,1),_Value(nValue){}

MsAvailabilityStatus::MsAvailabilityStatus(
const MsAvailabilityStatus &nMsAvailabilityStatus):
TLV(nMsAvailabilityStatus),_Value(nMsAvailabilityStatus.getValue()){}

bool MsAvailabilityStatus::operator ==(
	const MsAvailabilityStatus &nMsAvailabilityStatus) const{
		return (TLV::operator == (nMsAvailabilityStatus) && 
				_Value == nMsAvailabilityStatus.getValue());
}

bool MsAvailabilityStatus::operator !=(
	const MsAvailabilityStatus &nMsAvailabilityStatus) const{
	return !this->operator == (nMsAvailabilityStatus);
}

MsAvailabilityStatus &MsAvailabilityStatus::operator = (
	const MsAvailabilityStatus &nMsAvailabilityStatus){
	if(*this == nMsAvailabilityStatus)
		return *this;
	TLV::operator = (nMsAvailabilityStatus);
	_Value = nMsAvailabilityStatus.getValue();
	return *this;
}

void MsAvailabilityStatus::setValue(const quint8 nValue){
	_Value = nValue;
}

const quint8 MsAvailabilityStatus::getValue() const{
	return _Value;
}
